#ifndef MYTABWIDGED_H
#define MYTABWIDGED_H

#include <QTabWidget>

class MyTabWidget: public QTabWidget
{
    Q_OBJECT
public:
    MyTabWidget(QWidget* parent)
    {
        this->setParent(parent);
        connect(this,SIGNAL(tabCloseRequested(int)),this,SLOT(closeTab(int)));
    };
    ~ MyTabWidget(){};

public slots:
    void closeTab(int index)
    {
        //Handle tabCloseRequested Signal and Close the Tab
        this->removeTab(index);
    };
};

#endif // MYTABWIDGED_H
